import { IFeidaoAiNodejsComponent } from '@feidao-factory/atom-nodejs/interfaces';
import render from '@feidao-factory/atom-nodejs/render/render';

import na002 from './na002';
import na003 from './na003';
import na004 from './na004';
import na005 from './na005';
import na006 from './na006';
import na007 from './na007';
import na008 from './na008';
import na009 from './na009';

import p001 from './p001';

export default async function na001(fd: IFeidaoAiNodejsComponent, ...args: any[]) {

	const ps = [na002(fd), na003(fd), na004(fd), na005(fd), na006(fd), na007(fd), na008(fd), na009(fd)].map((a) => {
		return a;
	});
	const res = await Promise.all(ps);
	await render(fd.data.node, res, p001, 'p001');
}
